package com.dcy.strategy;

/**
 * @Auther: 董春雨
 * @Date: 2019/4/19 08:39
 * @Description: 锦囊
 */
public class Context {
    //构造函数，你要使用哪个妙计
    private IStrategy iStrategy;

    public Context(IStrategy iStrategy) {
        this.iStrategy = iStrategy;
    }


    //使用计谋了，看我出招了
    public void operate() {
        iStrategy.operate();
    }
}
